//
//  HomeViewModel.h
//  NekaPrice
//
//  Created by yu on 2018/6/11.
//  Copyright © 2018年 ma c. All rights reserved.
//

#import <Foundation/Foundation.h>
#import "CarModel.h"
#import "ProjectModel.h"
#import "ProductModel.h"
typedef void(^QuotationResultBlock)(void);

@interface HomeViewModel : NSObject

//报价结果
@property (nonatomic, copy)QuotationResultBlock resultBlock;

#pragma mark -- 数据相关
//项目大分类对应的汽车品牌的列表
@property (nonatomic, strong)NSMutableArray *firstBrandList;
@property (nonatomic, strong)NSMutableArray *secondBrandList;
@property (nonatomic, strong)NSMutableArray *thirdBrandList;

//汽车品牌下的车系
@property (nonatomic, strong)NSMutableArray *firstSeriesList;
@property (nonatomic, strong)NSMutableArray *secondSeriesList;
@property (nonatomic, strong)NSMutableArray *thirdSeriesList;


//项目大分类下对应的项目分类列表
@property (nonatomic, strong)NSMutableArray *firstProList;
@property (nonatomic, strong)NSMutableArray *secondProList;
@property (nonatomic, strong)NSMutableArray *thirdProList;




//玻璃贴膜对应的贴膜位置列表
@property (nonatomic, strong)NSMutableArray *thirdPartList;



//漆面保护膜Model
@property (nonatomic, strong)ProductModel *firstModel;
//个性改色膜Model
@property (nonatomic, strong)ProductModel *secondModel;
//安全隔热膜Model
@property (nonatomic, strong)ProductModel *thirdModel;



- (void)requestBrandList:(void (^)(void))finished;


- (void)requestFirstSeriesList:(void (^)(void))finished;
- (void)requestSecondSeriesList:(void (^)(void))finished;
- (void)requestThirdSeriesList:(void (^)(void))finished;
- (void)requestThirdProjectList:(void (^)(void))finished;
- (void)requestPrice:(NSInteger)index;

- (CGFloat)detailHeightWithIndex:(NSInteger)index;
@end
